
import { JsonUtil } from "../../../../../extensions/oops-plugin-framework/assets/core/utils/JsonUtil";

export class TableBattleConf {
    static TableName: string = "BattleConf";

    private data: any;

    init(id: number) {
        var table = JsonUtil.get(TableBattleConf.TableName);
        this.data = table[id];
        this.id = id;
    }

    /** 编号【KEY】 */
    id: number = 0;

    /** 限制回合数 */
    get max_round(): number {
        return this.data.max_round;
    }
    /** 敌人配置(敌人ID,敌人站位,敌人等级) */
    get monsters(): any {
        return this.data.monsters;
    }
    /**  点金金币 */
    get coin_dianjin(): number {
        return this.data.coin_dianjin;
    }
    /** 每小关金币 */
    get coin_wave(): number {
        return this.data.coin_wave;
    }
    /** 唯一id */
    get key_id(): number {
        return this.data.key_id;
    }
    /** 章id */
    get chapter_id(): number {
        return this.data.chapter_id;
    }
}
    